﻿<UserControl x:Class="SomethingSpacial.Views.Default.NextEvent"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:vm="clr-namespace:SomethingSpacial.ViewModel" >
    <UserControl.DataContext>
        <vm:NextEventViewModel x:Name="vmEvents"  />
    </UserControl.DataContext>


    <Canvas x:Name="LayoutRoot" Width="500" Height="400"  >

        <StackPanel Orientation="Vertical" >
            <TextBlock x:Name="DisplayTitleTarget" Text="Next Meeting" HorizontalAlignment="Left" FontFamily="Verdana" FontSize="14" Foreground="{StaticResource MainControlTitleBrush}" />
            <StackPanel Orientation="Horizontal">
                <Border Height="400" Width="500" Background="White" CornerRadius="10" Padding="10">
                    <Border.Effect>
                        <DropShadowEffect Color="#FFADA4A4" ShadowDepth="3"/>
                    </Border.Effect>
                    <StackPanel VerticalAlignment="Top" Orientation="Vertical">
                        <ListBox  ItemsSource="{Binding Events}" 
                        			    ItemTemplate ="{StaticResource DataTemplateLatestEventStyle1}" 
                        			    Height="330" VerticalAlignment="Top" 
                        			    Margin="3,5,2,0" ScrollViewer.HorizontalScrollBarVisibility="Hidden" 
                        			    ScrollViewer.VerticalScrollBarVisibility="Hidden" 
                        			    BorderThickness="0" Width="475" />
                        <Button Height="27" Content="View Directions" FontSize="13.333" x:Name="buttonShowMap2" Click="buttonShowMap_Click" Margin="3,0,2,0"  />
                    </StackPanel>
                </Border>
            </StackPanel>
        </StackPanel>

    
       
    </Canvas>
</UserControl>
